using UnityEngine;

public class PlayerStateSkill : MonoBehaviour
{
    private GameMoveControl _gameMove;

    private void Start()
    {
        _gameMove = GetComponent<GameMoveControl>();
    }

    public void AddSpeed(float speed)
    {
        if (_gameMove == null) return;

        if (_gameMove.MoveSpeed+speed<0) return;

        _gameMove.MoveSpeed += speed;
    }
}
